import { createRouter, createWebHistory } from 'vue-router'

// import Layout from '@/views/Layout'

import { constantRouterMap } from '@/config/router.config'

const router = createRouter({
	history: createWebHistory(import.meta.env.VITE_APP_BASE_URL),
	// history: createWebHistory(),
	routes: constantRouterMap,
})

export default router
